import json
# {
#     "name": "linrui",
#     "encoding": "GBK",
#     "importDir_5MIN": "E:\\stcokData\\20220116\\stock_5MIN_qfq",
#     "importDir_DAY": "E:\\stcokData\\20220116\\stock_DAY_qfq",
#     "exportDir": "E:\\stcokData\\20220116\\export"
# }

# 将类文件对象中的JSON字符串直接转换成 Python 字典
class ReadJson:
    def __init__(self):
        print("readJson  __init__")
    def system_config(self):
        with open('config.json', 'r', encoding='utf-8') as f:
            ret_dic = json.load(f)
            # print(type(ret_dic)) # 结果 <class 'dict'>
            # print(ret_dic['name']) # 结果 pengjunle
        return ret_dic
